//
//  UITextView+Category.m
//  Project_Demo
//
//  Created by caoxiaozhu on 2018/7/5.
//  Copyright © 2018年 caoxiaozhu. All rights reserved.
//

#import "UITextView+Category.h"

@implementation UITextView (Category)

+(UITextView*)textViewWithStr:(NSString *)textStr BackgroundColor:(UIColor *)bacColor KeyboardType:(UIKeyboardType)type ScrollEnable:(BOOL)enable CanEditable:(BOOL)canEdit Font:(UIFont *)font TextAlignment:(NSTextAlignment )alignment TextColor:(UIColor *)color{
    
    UITextView *textView = [[UITextView alloc]init];
    textView.text = textStr;
    textView.backgroundColor = bacColor;
    textView.keyboardType = type;
    textView.scrollEnabled = enable;
    textView.editable = canEdit;
    textView.font  = font;
    textView.textAlignment = alignment;
    textView.textColor = color;
    
    return textView;
}

@end
